Hackerrank Divisible Sum Pairs Solution